Part Number Hot Search : 
RX0915S DTA114E 1N3826 8HC90 CSC2271C M63813P 1N4007 CH29BU
Product Description
Full Text Search
 

To Download DAC8512 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 a
FEATURES Space Saving SO-8 or Mini-DIP Packages Complete, Voltage Output with Internal Reference 1 mV/Bit with 4.095 V Full Scale Single +5 Volt Operation No External Components 3-Wire Serial Data Interface, 20 MHz Data Loading Rate Low Power: 2.5 mW APPLICATIONS Portable Instrumentation Digitally Controlled Calibration Servo Controls Process Control Equipment PC Peripherals
+5 V, Serial Input Complete 12-Bit DAC DAC8512
FUNCTIONAL BLOCK DIAGRAM
1 REF 12-BIT DAC 12 CLR 6 LD CS 5 2 12 SERIAL REGISTER DAC REGISTER 7 GND 8 VDD VOUT
CLK 3 SDI 4
GENERAL DESCRIPTION
The DAC8512 is a complete serial input, 12-bit, voltage output digital-to-analog converter designed to operate from a single +5 V supply. It contains the DAC, input shift register and latches, reference and a rail-to-rail output amplifier. Built using a CBCMOS process, these monolithic DACs offer the user low cost, and ease of use in +5 V only systems. Coding for the DAC8512 is natural binary with the MSB loaded first. The output op amp can swing to either rail and is set to a range of 0 V to +4.095 V--for a one-millivolt-per-bit resolution. It is capable of sinking and sourcing 5 mA. An on-chip reference is laser trimmed to provide an accurate full-scale output voltage of 4.095 V.
1.0 0.75
Serial interface is high speed, three-wire, DSP compatible with data in (SDI), clock (CLK) and load strobe (LD). There is also a chip-select pin for connecting multiple DACs. A CLR input sets the output to zero scale at power on or upon user demand. The DAC8512 is specified over the extended industrial (-40C to +85C) temperature range. DAC8512s are available in plastic DIPs and SO-8 surface mount packages.
LINEARITY ERROR - LSB
0.5 0.25 0 -0.25 -0.5 -0.75 -1.0 0 1024 2048 3072 4096 DIGITAL INPUT CODE - Decimal
Linearity Error vs. Digital Input Code
REV. A
Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices. One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Tel: 617/329-4700 World Wide Web Site: http://www.analog.com Fax: 617/326-8703 (c) Analog Devices, Inc., 1996
DAC8512-SPECIFICATIONS
ELECTRICAL CHARACTERISTICS (@ V
Parameter STATIC PERFORMANCE Resolution Relative Accuracy Differential Nonlinearity Zero-Scale Error Full-Scale Voltage Full-Scale Tempco ANALOG OUTPUT Output Current Load Regulation at Full Scale Capacitive Load LOGIC INPUTS Logic Input Low Voltage Logic Input High Voltage Input Leakage Current Input Capacitance Symbol N INL DNL VZSE VFS TCVFS IOUT LREG CL VIL VIH IIL CIL
DD
= +5.0 V
5%, -40 C TA +85 C, unless otherwise noted)
Min 12 -1 -2 -1 4.087 4.079 Typ Max Units Bits LSB LSB LSB LSB V V ppm/C mA LSB pF V V A pF ns ns ns ns ns ns ns ns ns ns s nV s nV s 2.5 1 12.5 5 0.004 mA mA mW mW %/%
Condition Note 2 E Grade F Grade No Missing Codes Data = 000H Data = FFFH3 Notes 3, 4 Data = 800H RL = 402 to , Data = 800H No Oscillation4
E Grade F Grade
1/4 3/4 3/4 +1/2 4.095 4.095 16 7 1 500
+1 +2 +1 +3 4.103 4.111
5
3
0.8 2.4 10 10 30 30 20 15 15 30 15 10 30 20 To 1 LSB of Final Value5 10 10 10 5 20
INTERFACE TIMING SPECIFICATIONS1, 4 Clock Width High tCH Clock Width Low tCL Load Pulse Width tLDW Data Setup tDS Data Hold tDH Clear Pulse Width tCLRW Load Setup tLD1 Load Hold tLD2 Select tCSS Deselect tCSH AC CHARACTERISTICS4 Voltage Output Settling Time DAC Glitch Digital Feedthrough SUPPLY CHARACTERISTICS Positive Supply Current Power Dissipation Power Supply Sensitivity tS
16 15 15 1.5 0.5 7.5 2.5 0.002
IDD PDISS PSS
VIH = 2.4 V, VIL = 0.8 V, No Load VDD = 5 V, VIL = 0 V, No Load VIH = 2.4 V, VIL = 0.8 V, No Load VDD = 5 V, VIL = 0 V, No Load VDD = 5%
NOTES 1 All input control signals are specified with tr = tf = 5 ns (10% to 90% of +5 V) and timed from a voltage level of 1.6 V. 2 1 LSB = 1 mV for 0 V to +4.095 V output range. 3 Includes internal voltage reference error. 4 These parameters are guaranteed by design and not subject to production testing. 5 The settling time specification does not apply for negative going transitions within the last 6 LSBs of ground. Some devices exhibit double the typical settling time in this 6 LSB region. Specifications subject to change without notice.
-2-
REV. A
DAC8512 WAFER TEST LIMITS (@ V
Parameter STATIC PERFORMANCE Relative Accuracy Differential Nonlinearity Zero-Scale Error Full-Scale Voltage LOGIC INPUTS Logic Input Low Voltage Logic Input High Voltage Input Leakage Current SUPPLY CHARACTERISTICS Positive Supply Current Power Dissipation Power Supply Sensitivity
DD
= +5.0 V
Symbol INL DNL VZSE VFS VIL VIH IIL IDD PDISS PSS
5%, TA = +25 C, applies to part number DAC8512GBC only, unless otherwise noted)
Condition Min -2 -1 Typ Max Units LSB LSB LSB V V V A mA mA mW mW %/%
No Missing Codes Data = 000H Data = FFFH
3/4 +2 0.7 +1 +1/2 +3 4.085 4.095 4.105 0.8 2.4 10
VIH = 2.4 V, VIL= 0.8 V, No Load VDD = 5 V, VIL = 0 V, No Load VIH = 2.4 V, VIL = 0.8 V, No Load VDD = 5 V, VIL = 0 V, No Load VDD = 5%
1.5 0.5 7.5 2.5 0.002
2.5 1 12.5 5 0.004
NOTE Electrical tests are performed at wafer probe to the limits shown. Due to variations in assembly methods and normal yield loss, yield after packaging is not guaranteed for standard product dice. Consult factory to negotiate specifications based on dice lot qualifications through sample lot assembly and testing.
ABSOLUTE MAXIMUM RATINGS*
VDD to GND . . . . . . . . . . . . . . . . . . . . . . . . . . . -0.3 V, +10 V Logic Inputs to GND . . . . . . . . . . . . . . . -0.3 V, VDD + 0.3 V VOUT to GND . . . . . . . . . . . . . . . . . . . . . -0.3 V, VDD + 0.3 V IOUT Short Circuit to GND . . . . . . . . . . . . . . . . . . . . . . 50 mA Package Power Dissipation . . . . . . . . . . . . . . (TJ max - TA)/JA Thermal Resistance JA 8-Pin Plastic DIP Package (P) . . . . . . . . . . . . . . . . 103C/W 8-Lead SOIC Package (S) . . . . . . . . . . . . . . . . . . . 158C/W Maximum Junction Temperature (TJ max) . . . . . . . . . +150C
Operating Temperature Range . . . . . . . . . . . . . -40C to +85C Storage Temperature Range . . . . . . . . . . . . . -65C to +150C Lead Temperature (Soldering, 10 secs) . . . . . . . . . . . . +300C
*Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability .
CAUTION ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily accumulate on the human body and test equipment and can discharge without detection. Although the DAC8512 features proprietary ESD protection circuitry, permanent damage may occur on devices subjected to high energy electrostatic discharges. Therefore, proper ESD precautions are recommended to avoid performance degradation or loss of functionality.
WARNING!
ESD SENSITIVE DEVICE
ORDERING GUIDE INL Temperature (LSB) Range 1 2 2 2 -40C to +85C -40C to +85C -40C to +85C +25C Package Package Description Option 8-Pin P-DIP N-8 8-Pin P-DIP N-8 8-Lead SOIC SO-8 Dice
Model DAC8512EP DAC8512FP DAC8512FS DAC8512GBC
REV. A
-3-
DAC8512
SDI D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 CLK
tcss
CS
tcsh tld2
tld1
LD
SDI
t ds
CLK
t dh tch tldw
tcl
LD
tclrw
CLR FS ZS
ts
1 LSB ERROR BAND
VOUT
tS
Figure 1. Timing Diagram
ESD PROTECTION DIODES TO VDD AND GND CS
CLK DATA SDI
SHIFT REGISTER
Figure 2. Equivalent Clock Input Logic
Table I. Control-Logic Truth Table
CS2 H L L L + H H H H
CLK2 X L H + L X X X X
CLR H H H H H H H L +
LD H H H H H - L X H
Serial Shift Register Function No Effect No Effect No Effect Shift-Register-Data Advanced One Bit Shift-Register-Data Advanced One Bit No Effect No Effect No Effect No Effect
DAC Register Function Latched Latched Latched Latched Latched Updated with Current Shift Register Contents Transparent Loaded with All Zeros Latched All Zeros
NOTES l + positive logic transition; - negative logic transition; X = Don't Care. 2 CS and CLK are interchangeable. 3 Returning CS HIGH avoids an additional "false clock" of serial data input. 4 Do not clock in serial data while LD is LOW.
-4-
REV. A
DAC8512
PIN CONFIGURATIONS SO-8
VDD 1 CS 2 CLK 3 SDI 4 8 VOUT
OPERATION
P-DIP-8 & Cerdip-8
VDD CS CLK SDI
1 2 3 4
8
VOUT GND CLR LD
DAC8512
7 GND
TOP VIEW 6 CLR (Not to Scale) 5 LD
DAC8512
TOP VIEW (Not to Scale)
7 6 5
PIN DESCRIPTIONS Pin
1 2 3 4
The DAC8512 is a complete ready to use 12-bit digital-to-analog converter. It contains a voltage-switched, 12-bit, laser-trimmed DAC, a curvature-corrected bandgap reference, a rail-to-rail output op amp, a DAC register, and a serial data input register. The serial data interface consists of a CLK, serial data in (SDI), and a load strobe (LD). This basic 3-wire interface offers maximum flexibility for interface to the widest variety of serial data input loading requirements. In addition a CS select is provided for multiple packaging loading and a power on reset CLR pin to simplify start or periodic resets.
D/A CONVERTER SECTION
Name Description
VDD CS CLK SDI Positive Supply. Nominal value +5 V, 5%. Chip Select. Active low input. Clock input for the internal serial input shift register. Serial Data Input. Data on this pin is clocked into the internal serial register on positive clock edges of the CLK pin. The Most Significant Bit (MSB) is loaded first. LD Active low input which writes the serial register data into the DAC register. Asynchronous input. CLR Active low digital input that clears the DAC register to zero, setting the DAC to minimum scale. Asynchronous input. GND Analog ground for the DAC. This also serves as the digital logic ground reference voltage. VOUT Voltage output from the DAC. Fixed output voltage range of 0 V to 4.095 V with 1 mV/LSB. An internal temperature stabilized reference maintains a fixed full-scale voltage independent of time, temperature and power supply variations.
The DAC is a 12-bit voltage mode device with an output that swings from GND potential to the 2.5 volt internal bandgap voltage. It uses a laser trimmed R-2R ladder which is switched by N channel MOSFETs. The output voltage of the DAC has a constant resistance independent of digital input code. The DAC output is internally connected to the rail-to-rail output op amp.
AMPLIFIER SECTION
5 6
7 8
The DAC's output is buffered by a low power consumption precision amplifier. This amplifier contains a differential PNP pair input stage which provides low offset voltage and low noise, as well as the ability to amplify the zero-scale DAC output voltages. The rail-to-rail amplifier is configured in a gain of 1.6384 (= 4.095 V/2.5 V) in order to set the 4.095 volt full-scale output (1 mV/LSB). See Figure 3 for an equivalent circuit schematic of the analog section.
BANDGAP REFERENCE VOLTAGE SWITCHED 12-BIT R-2R D/A CONVERTER 2R R BUFFER R2 2R 2.5V 2R R R1 RAIL-TO-RAIL OUTPUT AMPLIFIER
VOUT
DICE CHARACTERISTICS
VDD 1 VOUT 8 GND GND CLR
SPDT N-CH FET SWITCHES
AV = 4.095/2.5 = 1.638V/V
7 7 6 2
2R 2R
CS
Figure 3. Equivalent DAC8512 Schematic of Analog Portion
CLK 3
4 SDI
5 LD
The op amp has a 16 s typical settling time to 0.01%. There are slight differences in settling time for negative slowing signals vs. positive. See the oscilloscope photos in the typical performances section of this data sheet.
SUBSTRATE IS COMMON WITH V DD . NUMBER OF TRANSISTORS : 642 DIE SIZE: 0.055 inch x 0.106 inch; 5830 sq mils
REV. A
-5-
DAC8512
OUTPUT SECTION
The rail-to-rail output stage of this amplifier has been designed to provide precision performance while operating near either power supply.
VDD P-CH
As with any analog system, it is recommended that the DAC8512 power supply be bypassed on the same PC card that contains the chip. Figure 10 shows the power supply rejection versus frequency performance. This should be taken into account when using higher frequency switched mode power supplies with ripple frequencies of 100 kHz and higher. One advantage of the rail-to-rail output amplifier used in the DAC8512 is the wide range of usable supply voltage. The part is fully specified and tested over temperature for operation from +4.75 V to +5.25 V. If reduced linearity and source current capability near full scale can be tolerated, operation of the DAC8512 is possible down to +4.3 volts. The minimum operating supply voltage versus load current plot, in Figure 11, provides information for operation below VDD = +4.75 V.
TIMING AND CONTROL
VOUT N-CH
AGND
Figure 4. Equivalent Analog Output Circuit
Figure 4 shows an equivalent output schematic of the rail-to-rail amplifier with its N channel pull down FETs that will pull an output load directly to GND. The output sourcing current is provided by a P channel pull up device that can supply GND terminated loads, especially at the low supply tolerance values of 4.75 volts. Figures 5 and 6 provide information on output swing performance near ground and full-scale as a function of load. In addition to resistive load driving capability the amplifier has also been carefully designed and characterized for up to 500 pF capacitive load driving capability.
POWER SUPPLY
The DAC8512 has a separate serial input register from the 12-bit DAC register that allows preloading of a new data value into the serial register without disturbing the present DAC output voltage. After the new value is fully loaded in the serial input register it can be asynchronously transferred to the DAC register by strobing the LD pin. The DAC register uses a level sensitive LD strobe that should be returned high before any new data is loaded into the serial input register. At any time the contents of the DAC register can be reset to zero by strobing the CLR pin which causes the DAC output voltage to go to zero volts. All of the timing requirements are detailed in Figure 1 along with the Table I Control-Logic Truth Table.
The very low power consumption of the DAC8512 is a direct result of a circuit design optimizing use of the CBCMOS process. By using the low power characteristics of the CMOS for the logic, and the low noise, tight matching of the complementary bipolar transistors good analog accuracy is achieved. For power consumption sensitive applications it is important to note that the internal power consumption of the DAC8512 is strongly dependent on the actual logic input voltage levels present on the SDI, CS, LD, and CLR pins. Since these inputs are standard CMOS logic structures they contribute static power dissipation dependent on the actual driving logic VOH and VOL voltage levels. The graph in Figure 9 shows the effect on total DAC8512 supply current as a function of the actual value of input logic voltage. Consequently use of CMOS logic vs. TTL minimizes power dissipation in the static state. A VIL = 0 V on the SDI, CS and CLR pins provides the lowest standby power dissipation of 2.5 mW (500 A x 5 V).
-6-
REV. A
Typical Performance Characteristics -- DAC8512
OUTPUT PULL-DOWN VOLTAGE - mV
5 VDD = +5V TA = +25 C
OUTPUT VOLTAGE - Volts
100 VDD = +5V DATA = 000H
OUTPUT CURRENT - mA
80 60 40 20 0 -20 -40 -60 -80 NEG CURRENT LIMIT 1 2 3 OUTPUT VOLTAGE - Volts DATA = 800 H RL TIED TO +2V POS0 CURRENT0 LIMIT0
4 RL TIED TO AGND RL TIED TO AGND D = FFFH H DATA = FFF 3
10
1
T A = +85 C
2
T A = +25 C 0.1 TA = -40 C
1
R L TIED TO +5V DATA = 000H
0 10 100 1k 10k LOAD RESISTANCE - 100k
0.01 1 10 100 OUTPUT SINK CURRENT - 1000 A
-100
Figure 5. Output Swing vs. Load
Figure 6. Pull-Down Voltage vs. Output Sink Current Capability
Figure 7. Short Circuit Current
OUTPUT NOISE VOLTAGE - 500V/DIV
4.0
100
VDD = +5V TA = +25 C NO LOAD
POWER SUPPLY REJECTION - dB
50mV
100 90
V DD = +5V 80
200mV AC
SUPPLY CURRENT - mA
3.2
T A = +25 C DATA = FFF H
2.4
60
10 0%
2mS
CODE = FFFH = 409510 BW = 630kHz SCALE = 100X TA = +25 C TIME = 2ms/DIV
1.6
40
0.8
20
0.0 0 1 2 3 4 LOGIC VOLTAGE VALUE - Volts 5
0 10 100 1k 10k FREQUENCY - Hz 100k
Figure 8. Broadband Noise
Figure 9. Supply Current vs. Logic Input Voltage
Figure 10. Power Supply Rejection vs. Frequency
5.0 VFS 1 LSB DATA = FFF H TA = +25 C
5
1V
100
4.8
LD
0
90
VDD MIN - Volts
VOUT - Volts
4.6 PROPER OPERATION WHEN V DD SUPPLY VOLTAGE ABOVE CURVE
2.048 2.038 2.028 2.018 VDD = 5V TA = +25 C
1V/DIV
2048 10 TO 204710
R L = NO LOAD CL = 110pF
10 0%
4.4
TA = +25 C
20s
4.2
TIME = 20s/DIV
4.0 0.01
0.04 0.1 0.4 4.0 1.0 OUTPUT LOAD CURRENT - mA
10
TIME - 200ns/DIV
Figure 11. Minimum Supply Voltage vs. Load
Figure 12. Midscale DAC Glitch Performance
Figure 13. Large Signal Settling Time
REV. A
-7-
DAC8512 -- Typical Performance Characteristics
2.0 1.5 LINEARITY ERROR - LSB LD
LD
5 0 16s
5 0
VDD = +5V TA = -40 C, +25 C, +85 C -40 C
1.0 0.5 0.0 -0.5 -1.0 -1.5 -2.0 0 512 1024 1536 2048 2560 3072 3584 4096 DIGITAL INPUT CODE - Decimal +25 C & +85 C
OUTPUT VOLTAGE 1mV/DIV
OUTPUT VOLTAGE 1mV/DIV
V DD = +5V T A = +25 C R L = NO LOAD TIME - 10s/DIV
V DD = +5V T A = +25 C R L = NO LOAD
TIME - 10s/DIV
Figure 14. Rise Time Detail
Figure 15. Fall Time Detail
Figure 16. Linearity Error vs. Digital Code
3
60
FULL-SCALE OUTPUT - Volts
50
TUE = INL + ZS + FS SS = 300 UNITS T A = +25 C
4.115 4.110 4.105 4.100 4.095 4.090 4.085 4.080 4.075 -50 AVG AVG - 3 AVG + 3 VDD = +5V NO LOAD SS = 300 PCS
NUMBER OF UNITS
40
30
ZERO-SCALE - mV
2
DATA = 000 H NO LOAD VDD = +5.0V
1
20
0
10
0 -12
-8 -4 0 +4 +8 +12 TOTAL UNADJUSTED ERROR - mV
-25
0 25 50 75 TEMPERATURE - C
100
125
-1 -50
-25
0 25 50 75 TEMPERATURE - C
100
125
Figure 17. Total Unadjusted Error Histogram
10
OUTPUT NOISE DENSITY - V/Hz
Figure 18. Full-Scale Voltage vs. Temperature
5 135 UNITS TESTED
OUTPUT VOLTAGE CHANGE - mV
Figure 19. Zero-Scale Voltage vs. Temperature
4 VLOGIC = 2.4V DATA = FFF H
SUPPLY CURRENT - mA
VDD = +5V TA = +25 C DATA = FFF H 1
4 3 2
RANGE
3
NO LOAD
1 0 -1 -2 -3 -4 -5 0 READINGS NORMALIZED TO ZERO HOUR TIME POINT 200 400 600 800 1000 AVERAGE
VDD = +5.0V 2 VDD = +5.25V 1 VDD = +4.75V
0.1
0.01 10 100 1k 10k FREQUENCY - Hz 100k
1200
0 -50
-25
HOURS OF OPERATION AT +125 C
0 25 50 75 TEMPERATURE - C
100
125
Figure 20. Output Voltage Noise vs. Frequency
Figure 21. Long Term Drift Accelerated by Burn-In
Figure 22. Supply Current vs. Temperature
-8-
REV. A
Typical Performance Characteristics-- DAC8512
APPLICATIONS SECTION
Power Supplies, Bypassing, and Grounding
All precision converter products require careful application of good grounding practices to maintain full rated performance. Because the DAC8512 has been designed for +5 V applications, it is ideal for those applications under microprocessor or microcomputer control. In these applications, digital noise is prevalent; therefore, special care must be taken to assure that its inherent precision is maintained. This means that particularly good engineering judgment should be exercised when addressing the power supply, grounding, and bypassing issues using the DAC8512. The power supply used for the DAC8512 should be well filtered and regulated. The device has been completely characterized for a +5 V supply with a tolerance of 5%. Since a +5 V logic supply is almost universally available, it is not recommended to connect the DAC directly to an unfiltered logic supply without careful filtering. Because it is convenient, a designer might be inclined to tap a logic circuit's supply for the DAC's supply. Unfortunately, this is not wise because fast logic with nanosecond transition edges induce high current pulses. The high transient current pulses can generate glitches hundreds of millivolts in amplitude due to wiring resistances and inductances. This high frequency noise will corrupt the analog circuits internal to the DAC and cause errors. Even though their spike noise is lower in amplitude, directly tapping the output of a +5 V system supply can cause errors because these supplies are of the switching regulator type that can and do generate a great deal of high frequency noise. Therefore, the DAC and any associated analog circuitry should be powered directly from the system power supply outputs using appropriate filtering. Figure 23 illustrates how a clean, analog-grade supply can be generated from a +5 V logic supply using a differential LC filter with separate power supply and return lines. With the values shown, this filter can easily handle 100 mA of load current without saturating the ferrite cores. Higher current capacity can be achieved with larger ferrite cores. For lowest noise, all electrolytic capacitors should be low ESR (Equivalent Series Resistance) type.
FERRITE BEADS: 2 TURNS, FAIR-RITE #2677006301 TTL/CMOS LOGIC CIRCUITS
the ground connection of the DAC8512 be connected to a high quality analog ground, such as the one described above. Generous bypassing of the DAC's supply goes a long way in reducing supply line-induced errors. Local supply bypassing consisting of a 10 F tantalum electrolytic in parallel with a 0.1 F ceramic is recommended. The decoupling capacitors should be connected between the DAC's supply pin (Pin 1) and the analog ground (Pin 7). Figure 24 shows how the ground and bypass connections should be made to the DAC8512.
+5V
1 CS CLR LD SCLK SDI 2 6 5 3 4 GND 7 VDD 10F 0.1F
DAC8512
VOUT 8 VOUT
TO ANALOG GROUND
Figure 24. Recommended Grounding and Bypassing Scheme for the DAC8512
Unipolar Output Operation
This is the basic mode of operation for the DAC8512. As shown in Figure 24, the DAC8512 has been designed to drive loads as low as 2 k in parallel with 500 pF. The code table for this operation is shown in Table II.
+5V 10F 0.1F
CS CLR LD
2 6 5 3 4
1 VDD
DAC8512
VOUT 8 2k GND 7
0V VOUT 4.095V
+5V
SCLK SDI
500pF
100F ELECT .
10-22F TANT.
0.1F CER.
+5V RETURN +5V POWER SUPPLY
Figure 25. Unipolar Output Operation
Table II. Unipolar Code Table Hexadecimal Number in DAC Register Decimal Number in DAC Register Analog Output Voltage (V)
Figure 23. Properly Filtering a +5 V Logic Supply Can Yield a High Quality Analog Supply
In order to fit the DAC8512 in an 8-pin package, it was necessary to use only one ground connection to the device. The ground connection of the DAC serves as the return path for supply currents as well as the reference point for the digital input thresholds. The ground connection also serves as the supply rail for the internal voltage reference and the output amplifier. Therefore, to minimize any errors, it is recommended that
FFF 801 800 7FF 000
4095 2049 2048 2047 0
+4.095 +2.049 +2.048 +2.047 0
REV. A
-9-
DAC8512
Operating the DAC8512 on +12 V or +15 V Supplies Only
Although the DAC8512 has been specified to operate on a single, +5 V supply, a single +5 V supply may not be available in many applications. Since the DAC8512 consumes no more than 2.5 mA, maximum, then an integrated voltage reference, such as the REF02, can be used as the DAC8512 +5 V supply. The configuration of the circuit is shown in Figure 26. Notice that the reference's output voltage requires no trimming because of the REF02's excellent load regulation and tight initial output voltage tolerance. Although the maximum supply current of the DAC8512 is 2.5 mA, local bypassing of the REF02's output with at least 0.1 F at the DAC's voltage supply pin is recommended to prevent the DAC's internal digital circuits from affecting the DAC's internal voltage reference.
+12V OR +15V 0.1F
By adding a pull-down resistor from the output of the DAC8412 to a negative supply as shown in Figure 27, offset errors can now be read at zero code. This configuration forces the output p-channel MOSFET to source current to the negative supply thereby allowing the designer to determine in which direction the offset error appears. The value of the resistor should be such that, at zero code, current through the resistor is 200 A, maximum.
Bipolar Output Operation
2
REF02
4
6 0.1F
Although the DAC8512 has been designed for single-supply operation, bipolar operation is achievable using the circuit illustrated in Figure 28. The circuit uses a single-supply, rail-to-rail OP295 op amp and the REF03 to generate the -2.5 V reference required to level-shift the DAC output voltage. Note that the - 2.5 V reference was generated without the use of precision resistors. The circuit has been configured to provide an output voltage in the range -5 V VOUT +5 V and is coded in complementary offset binary. Although each DAC LSB corresponds to 1 mV, each output LSB has been scaled to 2.44 mV. Table III provides the relationship between the digital codes and output voltage. The transfer function of the circuit is given by: VO = -1 mV x Digital Code x
R4 R4 + 2.5 x R1 R2
1 CS CLR LD SCLK SDI 2 6 5 3 4 GND 7 VDD
DAC8512
8 VOUT
and, for the circuit values shown, becomes: VO = -2.44 mV x Digital Code + 5 V
+5V 0.1F 10F + FULL SCALE ADJUST R4 23.7k CLR 6 5 2 3 4 GND 7 -2.5V P2 10k -5V ZERO SCALE ADJUST 1 VDD P3 +5V 500 R1 10k 8 R2 12.7k R3 247k 6 8
Figure 26. Operating the DAC8512 on +12 V or +15 V Supplies Using a REF02 Voltage Reference
Measuring Offset Error
One of the most commonly specified endpoint errors associated with real world nonideal DACs is offset error. In most DAC testing, the offset error is measured by applying the zero-scale code and measuring the output deviation from 0 volt. There are some DACs where offset errors may be present but not observable at the zero scale because of other circuit limitations (for example, zero coinciding with single-supply ground). In these DACs, nonzero output at zero code cannot be read as the offset error. In the DAC8512, for example, the zero-scale error is specified to be 3 LSBs. Since zero scale coincides with zero volt, it is not possible to measure negative offset error.
0.1F +5V
LD CS SCLK SDI
DAC8512
A2
5 4
7 -5V V O +5V
+5V 0.1F 2 6 2.5V TRIM 0.01F
100 2 P1 10k
REF03
5 4
A1
3
1
-2.5V
1 CS CLR LD SCLK SDI 2 6 5 3 4 GND 7 V- VDD
A1, A2 = 1/2 OP295
DAC8512
8 R 200A, MAX VOUT
Figure 28. Bipolar Output Operation
SET CODE = 000H AND MEASURE V OUT
Figure 27. Measuring Zero-Scale or Offset Error
-10-
REV. A
DAC8512
Table III. Bipolar Code Table Hexadecimal Number in DAC Register
FFF
Generating a Negative Supply Voltage
Decimal Number in DAC Register 4095 2049 2048 2047 0
Analog Output Voltage (V) -4.9976 -2.44E-3 0 +2.44E-3 +5
801 800 7FF 000
To maintain monotonicity and accuracy, R1, R2, and R4 should be selected to match within 0.01% and must all be of the same (preferably metal foil) type to assure temperature coefficient matching. Mismatching between R1 and R2 causes offset and gain errors while an R4 to R1 and R2 mismatch yields gain errors. For applications that do not require high accuracy, the circuit illustrated in Figure 29 can also be used to generate a bipolar output voltage. In this circuit, only one op amp is used and no potentiometers are used for offset and gain trim. The output voltage is coded in offset binary and is given by:
R4 R2 VO = 1 mV x Digital Code x R3 + R4 x 1+ R1
Some applications may require bipolar output configuration but only have a single power supply rail available. This is very common in data acquisition systems using microprocessor-based systems. In these systems, +12 V, +15 V, and/or +5 V are only available. Shown in Figure 30 is a method of generating a negative supply voltage using one CD4049, a CMOS hex inverter, operating on +12 V or +15 V. The circuit is essentially a charge pump where two of the six are used as an oscillator. For the values shown, the frequency of oscillation is approximately 3.5 kHz and is fairly insensitive to supply voltage because R1 > 2 x R2. The remaining four inverters are wired in parallel for higher output current. The square wave output is level translated by C2 to a negative-going signal, rectified using a pair of 1N4001s, and then filtered by C3. With the values shown, the charge pump will provide an output voltage of -5 V for current loadings in the range 0.5 mA IOUT 10 mA with a +15 V supply and 0.5 mA IOUT 7 mA with a +12 V supply.
7 INVERTERS = CD4049 9 3 R1 510k 2 5 R2 5.1k 14 C1 0.02F 15 4 11 12 D1 1N4001 C3 47F 1N5231 5.1V ZENER 10 C2 47F D2 1N4001 R3 470 -5V 6
-2.5 x
R2 R1
+5V 0.1F
Figure 30. Generating a -5 V Supply When Only +12 V or +15 V Is Available
R1 R2 +5V 2 0.1F 3 8 +2.5V
2
REF03
4
6
A High-Compliance, Digitally Controlled Precision Current Source
+5V
A1
4 -5V
1
VO
1 CS CLR LD SCLK SDI 2 6 5 3 4 GND 7 VOUT RANGE R1 2.5V 5V R2 R3 R4 VDD
The circuit in Figure 31 shows the DAC8512 controlling a high-compliance precision current source using an AMP05 instrumentation amplifier. The AMP05's reference pin becomes the input, and the "old" inputs now monitor the voltage across a precision current sense resistor, RCS. Voltage gain is set to unity, so the transfer function is given by the following equation: IOUT = R CS If RCS equals 100 , the output current is limited to +10 mA with a 1 V input. Therefore, each DAC LSB corresponds to 2.4 A. If a bipolar output current is required, then the circuit in Figure 28 can be modified to drive the AMP05's reference pin with a 1 V input signal. Potentiometer P1 trims the output current to zero with the input at 0 V. Fine gain adjustment can be accomplished by adjusting R1 or R2.
V IN
DAC8512
8
A1 = 1/2 OP295 R3
R4
10k 10k 10k 15.4k + 274 10k 20k 10k 43.2k + 499
Figure 29. Bipolar Output Operation without Trim
For the 2.5 V output range and the circuit values shown in the table, the transfer equation becomes: VO = 1.22 mV x Digital Code - 2.5 V Similarly, for the 5 V output range, the transfer equation becomes: VO = 2.44 mV x Digital Code - 5 V
REV. A
-11-
DAC8512
R2 5k 7 6 18 R1 100k 1 11 2 4 P1 100k 5
1 CS 2 6 5 3 4 7 2 LOAD
+15V 0.1F
17
OP295's feedback loop. For the circuit values shown, the fullscale output current is 1 mA which is given by the following equation: IOUT =
10mA
12
RCS 100 10 8 0mA I OUT 2.4A/ BIT
DW x 4.095V R1
AMP05
9
where DW = DAC8512's binary digital input code.
+5V 0.1F VS
0.1F
CLR LD
DAC8512FP
8 3
+5V
-15V +15V
SCLK SDI
A1
1
2N2222
0.1F
A1 = 1/2 OP295
2 0.1F
R1 4.02k P1 200 FULL-SCALE ADJUST
REF02
4
6 1 CS CLR LD SCLK SDI 2 6 5 3 4 7
DAC8512FZ
8
R3 3k R4 1k
Figure 32. A Single-Supply, Programmable Current Source
The usable output voltage range of the current sink is +5 V to +60 V. The low limit of the range is controlled by transistor saturation, and the high limit is controlled by the collector-base breakdown voltage of the 2N2222.
A Digitally Programmable Window Detector
Figure 31. A High-Compliance, Digitally Controlled Precision Current Source
A Single-Supply, Programmable Current Source
The circuit in Figure 32 shows how the DAC8512 can be used with an OP295 single-supply, rail-to-rail output op amp to provide a digitally programmable current sink from VSOURCE that consumes less than 3.8 mA, maximum. The DAC's output voltage is applied across R1 by placing the 2N2222 transistor in the
+5V +5V 1 1k 6 2 5 3 4 2 1/6 74HC05 1 1 CLR HDAC/LDAC LD SCLK SDI 6 2 5 3 4 7 8 7 +5V 0.1F 8 0.1F VIN
A digitally programmable, upper/lower limit detector using two DAC8512s is shown in Figure 33. The required upper and lower limits for the test are loaded into each DAC individually by controlling HDAC/LDAC. If a signal at the test input is not within the programmed limits, the output will indicate a logic zero which will turn the red LED on.
+5V
+5V
DAC8512
+5V 0.1F
R1 604
R2 604
3 5 C1 4 2
RED LED T1 PASS/FAIL
GREEN LED T1
7 C2 1
3
4
DAC8512
6 12 C1, C2 = 1/4 CMP-404
1/6 74HC05
Figure 33. A Digitally Programmable Window Detector
-12-
REV. A
DAC8512
Opto-Isolated Interfaces for Process Control Environments
In many process control type applications, it is necessary to provide an isolation barrier between the controller and the unit being controlled. Opto-isolators can provide isolation in excess of 3 kV. The serial loading structure of the DAC8512 makes it ideal for opto-isolated interfaces as the number of interface lines is kept to a minimum. Illustrated in Figure 34 is an opto-isolated interface using the DAC8512. In this circuit, the CS line is always LOW to enable the DAC, and the 10 k/1 F combination connected to the DAC's CLR pin sets a turn-on time constant of 10 ms to reset the DAC upon application of power. Three opto-couplers are then used for the SDI, SCLK, and LD lines. Often times reducing the number of interface lines to two lines is required in many control environments. The circuit illustrated in Figure 35 shows how to convert a two-line interface into the three control lines required to control the DAC8512 without using one shots. This technique uses a counter to keep track of the clock cycles and, when all the data has been input to the DAC, the external logic generates the LD pulse.
HIGH VOLTAGE ISOLATION +5V REG POWER +5V
+5V 10k LD LD +5V +5V 0.1F 10k +5V 10k SCLK SCLK 0.1F 6 5 3 4 2 7 +5V 10k SDI SDI 1
DAC8512
8 VOUT
CS
Figure 34. An Opto-Isolated DAC Interface
HIGH VOLTAGE ISOLATION +5V REG POWER 10k +5V +5V
+5V 74HC161 10k
1
+5V 0.1F
16 15 14 13 12 11 10 9
1F
CLR CLK A B C D ENP GND
VCC RCO QA QB QC QD ENT LOAD
SCLK +5V
2 3 4 5
NC NC NC
1 2
1/4 74HCOO
X
3
+5V 10k 6 4 1/4 74HCOO 5 LD CLR
+5V
0.1F
10k +5V
6 7 8
1 VDD 8 VOUT
10k SDI
5
Y
6
3 SCLK 4 2 SDI CS
DAC8512
GND 7
Figure 35. A Two-Wire, Opto-lsolated DAC Interface
REV. A
-13-
DAC8512
LOAD DAC COUNTER CLK QD QC QB QA LOAD (X) DAC8512 CLK (Y) LOAD = QC
* QD
DAC8512 CLK = LOAD * SCLK
Figure 36. Opto-lsolated Two-Wire Serial Interface Timing Diagram
The timing diagram of Figure 36 can be used to understand the operation of the circuit. Only two opto-couplers are used in the circuit; one for SCLK and one for SDI. The 74HC161 counter in incremented on every rising edge of the clock. Additionally, the data is loaded into the DAC8512 on the falling edge of the clock by inverting the serial clock using gate "Y." The timing diagram shows that after the twelfth bit has been clocked the output of the counter is binary 1011. On the very next rising clock edge, the output of the counter changes to binary 1100 upon which the output of gate "X" goes LOW to generate the LD pulse. The LD signal is connected to both the DAC's LD and the counter's LOAD pins to prevent the thirteenth rising clock edge from advancing the DAC's internal shift register. This prevents false loading of data into the DAC8512. Inverting the DAC's serial clock allows sufficient time from the CLK edge to the LD edge, and from the LD edge to the next clock pulse all of which satisfies the timing requirements for loading the DAC8512. After loading one address of the DAC, the entire process can repeated to load another address. If the loading is complete, then the clock must stop after the thirteenth pulse of the final load. The DAC's clock input will be pulled high and the counter reset to zero. As was shown in Figure 35, both the 74HC161's and the DAC8512's CLR pins are connected to a simple R-C timing circuit that resets both ICs when the power in turned on. The circuit's time constant should be set longer than the power supply turn-on time and, in this circuit, is set to 10 ms, which should be adequate for most systems. This same two-wire interface can be used for other three-wire serial input DACs.
Decoding Multiple DAC8512s
ENABLE input while the coded address inputs are changing. A simple timing circuit, R1 and C1, connected to the DACs' CLR pins resets all DAC outputs to zero during power-up.
+5V R1 1k C1 0.1F
6 SCLK SDI LD 3 4 5 2
DAC8512 #1
8
VOUT1
6 +5V 3 4
74HC139
16 ENABLE CODED ADDRESS +5V 1 2 3 15 1k 14 13 8 VCC 1G 1A 1B 2G 2A 2B GND 1Y0 1Y1 1Y2 1Y3 2Y0 2Y1 2Y2 2Y3 4 5 6
DAC8512 #2
8
VOUT2
5 2
6 7 12 11 10 9 NC NC NC NC 6 3 4 5 2 3 4 5 2
DAC8512 #3
8
VOUT3
The CS function of the DAC8512 can be used in applications to decode a number of DACs. In this application, all DACs receive the same input data; however, only one of the DAC's CS input is asserted to transfer its serial input register contents into the destination DAC register. In this circuit, shown in Figure 37, the CS timing is generated by a 74HC139 decoder and should follow the DAC8512's standard timing requirements. To prevent timing errors, the 74HC139 should not be activated by its
DAC8512 #4
8
VOUT4
Figure 37. Decoding Multiple DAC8512s Using the CS Pin
-14-
REV. A
DAC8512
R1 619 R2 4.32k V+ AD600JN +625mV 1 2 3 16 15 14 0.1F 4 REF 5 12 V- 0.1F 2 R4 402 13 V+ V+ 0.1F R4 49.9 R3 402 R5 806
VI N
AD844
3
6 0.1F
VOUT 0.01dB/BIT
6 7 8
11 10 9
V- V+ 0.1F
SUPPLY DECOUPLING NETWORK
+5V 10F
1 CS CLR LD SCLK SDI 2 6 5 3 4 7 -5V R6 2.26k 0 V G 1.25V 1F R7 1k V+ V- 10F FB = FAIR RITE #2743001111
DAC8512FZ
8
Figure 38. A Digitally Controlled, Ultralow Noise VCA
A Digitally Controlled, Ultralow Noise VCA
The circuit in Figure 38 illustrates how the DAC8512 can be used to control an ultralow noise VCA, using the AD600/ AD602. The AD600/AD602 is a dual, low noise, wideband, variable gain amplifier based on the X-AMP topology.* Both channels of the AD600 are wired in parallel to achieve a wideband VCA which exhibits an RTI (Referred To Input) noise voltage spectral density of approximately 1 nV/Hz. The output of the VCA requires an AD844 configured in a gain of 4 to account for signal loss due to input and output 50 terminations. As configured, the total gain in the circuit is 40 dB. Since the output of the DAC8512 is single quadrant, it was necessary to offset the AD600's gain control voltage so that the gain of the circuit is 0 dB for zero scale and 40 dB at full scale. This was achieved by setting C1LO and C2LO to +625 mV using R1 and R2. Next, the output of the DAC8512 was scaled so that the gain of the AD600 equaled 20 dB when the digital input code equaled 800H. The frequency response of the VCA as a function of digital code is shown in Figure 39.
*For more details regarding the AD600 or AD602, please consult the AD600/ AD602 data sheet.
+70 +60 +50 4095
SYSTEM GAIN - dB
+40 3072 +30 2048 +20 1024 +10 0 0 -10 -20 -30 10k
100k
1M FREQUENCY - Hz
10M
100M
Figure 39. VCA Frequency Response vs. Digital Code
REV. A
-15-
DAC8512
A Serial DAC, Audio Volume Control
The DAC8512 is well suited to control digitally the gain or attenuation of a voltage controlled amplifier. In professional audio mixing consoles, music synthesizers, and other audio processors, VCAs, such as the SSM2018, adjust audio channel gain and attenuation from front panel potentiometers. The VCA provides a clean gain transition control of the audio level when the slew rate of the analog input control voltage, VC, is properly chosen. The circuit in Figure 40 illustrates a volume control application using the DAC8512 to control the attenuation of the SSM2018.
+15V P1 100k OFFSET TRIM -15V 18k VOUT
1 16 15 14 13
Table IV. SSM-2018 VCA Attenuation vs. DAC8512 Input Code
Hexadecimal Number in DAC Register 000 400 800 C00 FFF
Control Voltage (V) 0 +0.56 +1.12 +1.68 +2.24
VCA Attenuation (dB) 0 20 40 60 80
10M P2 500k SYMMETRY TRIM 10pF 470k
digital code equals FFFH. Therefore, every DAC LSB corresponds to 0.02 dB of attenuation. Table IV illustrates the attenuation vs. digital code of the volume control circuit. To compensate for the SSM2018's gain constant temperature coefficient of -3300 ppm/C, a 1 k, temperature-sensitive resistor (R7) manufactured by the Precision Resistor Company with a temperature coefficient of +3500 ppm/C is used. A CCON of 1 F provides a control transition time of 1 ms which yields a click-free change in the audio channel attenuation. Symmetry and offset trimming details of the VCA can be found in the SSM2018 data sheet. Information regarding the PT146 1 k "Compensator" can be obtained by contacting: Precision Resistor Company, Incorporated 10601 75th Street North Largo, Fl 34647 (813) 541-5771
An Isolated, Programmable, 4-20 mA Process Controller
+15V 0.1F
2 3 4
18k VIN +15V 0.1F 47pF 2
5 6 7 8
SSM2018
30k +15V
12 11 10 9
-15V 0.1F
REF02
4
+5V 6 1 CS CLR LD 2 6 5 3 4 7
0.1F
R6 825
0V V C R7 1k*
+2.24V
C CON 1F
DAC8512
8
SCLK SDI
* - PRECISION RESISTOR PT146 1k COMPENSATOR
In many process control system, applications, two-wire current transmitters are used to transmit analog signals through noisy environments. These current transmitters use a "zero-scale" signal current of 4 mA that can be used to power the transmitter's signal conditioning circuitry. The "full-scale" output signal in these transmitters is 20 mA. The converse approach to process control can also be used; a low-power, programmable current source can be used to control remotely located sensors or devices in the loop. A circuit that performs this function is illustrated in Figure 41. Using the DAC8512 as the controller, the circuit provides a programmable output current of 4 mA to 20 mA, proportional to the DAC's digital code. Biasing for the controller is provided by the REF02 and requires no external trim for two reasons: (1) the REF02's tight initial output voltage tolerance and (2) the low supply current consumption of both the OP90 and the DAC8512. The entire circuit, including opto-couplers, consumes less than 3 mA from the total budget of 4 mA. The OP90 regulates the output current to satisfy the current summation at the noninverting node of the OP-90. The KCL equation at Pin 3 is given by:
1 1 mV x Digital Code x R3 V REF x R3 + IOUT = R7 x R2 R1
Figure 40. A Serial DAC, Audio Volume Control
Since the supply voltage available in these systems is typically 15 V or 18 V, a REF02 is used to supply the +5 V required to power the DAC. No trimming of the reference is required because of the reference's tight initial tolerance and low supply current consumption of the DAC8512. The SSM2018 is configured as a unity-gain buffer when its control voltage equals 0 volt. This corresponds to a 000H code from the DAC8512. Since the SSM2018 exhibits a gain constant of -28 mV/dB (typical), the DAC's full-scale output voltage has to be scaled down by R6 and R7 to provide 80 dB of attenuation when the
-16-
REV. A
DAC8512
6 R2 976k P2 50 4mA ADJUST R1 200k 8 P1 10k 20mA ADJUST R3 80.6k D1 2 R4 54.9k D1 = HP5082-2810 3 7 OP90 4 R5 100k 4-20mA RL R7 100 100 6 REF02 4 VLOOP +12 TO +40V 2
1 CLR LD SCLK SCI 6 5
DAC8512
3 4 7
R6 150
Q1 2N1711
+5V 10k SCLK 360 CLK ILQ-1 REPEAT FOR SDI, LD, & CLR
Figure 41. An Isolated, Programmable, 4-20 mA Process Controller
For the values shown in Figure 41, IOUT = 3.9 A x Digital Code + 4 mA giving a full-scale output current of 20 mA when the DAC8512's digital code equals FFFH. Offset trim at 4 mA is provided by P2, and P1 provides the circuit's gain trim at 20 mA. These two trims do not interact because the noninverting input of the OP90 is at virtual ground. The Schottky diode, D1, is required in this circuit to prevent loop supply power-on transients from pulling the noninverting input of the OP90 more than 300 mV below its inverting input. Without this diode, such transients could cause phase reversal of the OP90 and possible latchup of the controller. The loop supply voltage compliance of the circuit is limited by the maximum applied input voltage to the REF02 and is from +12 V to +40 V.
MICROPROCESSOR INTERFACING DAC8512-MC68HC11 Interface
MC68HC11* PC1 PC0 SS SCK MOSI
DAC8512* CLR CS LD CLK SDI
*ADDITIONAL PINS OMITTED FOR CLARITY
Figure 42. DAC8512-MC68HC11 Interface
The circuit illustrated in Figure 42 shows a serial interface between the DAC8512 and the MC68HC11 8-bit microcontroller. SCK of the 68HC11 drives SCLK of the DAC8512, while the MOSI output drives the serial data line, SDI, of the DAC8512. The DAC's CLR, LD, and CS signals are derived from port lines PC1, PD5, and PC0, respectively, as shown. For correct operation of the serial interface, the 68HC11 should be configured such that its CPOL bit is set to 1 and its CPHA bit is also set to 1. When the serial data is to be transmitted to the DAC, PC0 is taken low, asserting the DAC's CS input. When the 68HC11 is configured in this manner, serial data on
MOSI is valid on the rising edge of SCLK. The 68HC11 transmits its serial data in 8-bit bytes (MSB first), with only eight rising clock edges occurring in the transmit cycle. To load data to the DAC8512's input serial register, PC0 is left low after the first eight bits are transferred, and a second byte of data is then transferred serially to the DAC8512. During the second byte load, the first four most significant bits of the first byte are pushed out of the DAC's input shift register. At the end of the second byte load, PC0 is then taken high. To prevent an accidental advancing of the internal shift register, SCLK must already be asserted before PC0 is taken high. To transfer the contents of the input shift register to the DAC register, PD5 is taken low, asserting the DAC's LD input. The DAC's CLR input, controlled by the 68HC11's PC1 port, provides an asynchronous clear function, setting the DAC output to zero. Included in this section is the source code for operating the DAC8512--M68HC11 interface.
REV. A
-17-
DAC8512
DAC8512-M68HC11 Interface Program Source Code * PORTC * DDRC PORTD * DDRD SPCR * SPSR * SPDR * EQU EQU EQU EQU EQU EQU EQU $1003 $1007 $1008 $1009 $1028 $1029 $102A Port C control register "0,0,0,0;0,0,CLR/,CS/" Port C data direction Port D data register "0,0,LD/,SCLK;SDI,0,0,0 Port D data direction SPI control register "SPIE,SPE,DWOM,MSTR;CPOL,CPHA,SPRl,SPR0" SPI status register "SPIF,WCOL,0,MODF;0,0,0,0" SPI data register; Read-Buffer; Write-Shifter
* SDI RAM variables: * * * * SDI1 EQU SDI2 EQU * ORG INIT LDS * LDAA * STAA LDAA STAA * LDAA * STAA LDAA STAA * LDAA STAA * BSR JMP * UPDATE PSHX PSHY PSHA * LDAA STAA * LDAA STAA * LDX LDY * BCLR BSET *
SDI1 is encoded from 0 (Hex) to F (Hex) SDI2 is encoded from 00 (Hex) to FF (Hex) DAC requires two 8-bit loads; upper 4 bits of SDI1 are ignored. $00 $01 $C000 #$CFFF #$03 PORTC #$03 DDRC #$30 PORTD #$38 DDRD #$5F SPCR UPDATE $E000 SDI packed byte 1 "0,0,0,0;MSB,DB10,DB9,DB8" SDI packed byte 2 "DB7,DB6,DB5,DB4;DB3,DB2,DB1,DB0" Start of user's RAM in EVB Top of C page RAM 0,0,0,0;0,0,1,1 CLR/-Hi, CS/-Hi Initialize Port C Outputs 0,0,0,0;0,0,1,1 CLR/ and CS/ are now enabled as outputs 0,0,1,1;0,0,0,0 LDI-Hi,SCLK-Hi,SDI-Lo Initialize Port D Outputs 0,0,1,1;1,0,0,0 LD/,SCLK, and SDI are now enabled as outputs
SPI is Master,CPHA=1,CPOL=1,Clk rate=E/32 Xfer 2 8-bit words to DAC8512 Restart BUFFALO Save registers X, Y, and A
#$0A SDI1 #$AA SDI2 #SDI1 #$1000
0,0,0,0;1,0,1,0 SDI1 is set to 0A (Hex) 1,0,1,0;1,0,1,0 SDI2 is set to AA (Hex) Stack pointer at 1st byte to send via SDI Stack pointer at on-chip registers
PORTC,Y $02 Assert CLR/ PORTC,Y $02 De-assert CLR/ PORTC,Y $01 Assert CS/
BCLR *
-18-
REV. A
DAC8512
TFRLP * WAIT * INX CPX BNE #SDI2+1 TFRLP LDAA STAA LDAA BPL 0,X SPDR SPSR WAIT Get a byte to transfer via SPI Write SDI data reg to start xfer Loop to wait for SPIF SPIF is the MSB of SPSR (when SPIF is set, SPSR is negated) Increment counter to next byte for xfer Are we done yet ? If not, xfer the second byte
* *Update DAC output with contents of DAC register * BCLR PORTD,Y $20 Assert LD/ BSET PORTD,Y $20 Latch DAC register * BSET PORTC,Y $01 De-assert CS/ PULA When done, restore registers X, Y & A PULY PULX RTS ** Return to Main Program **
REV. A
-19-
DAC8512
OUTLINE DIMENSIONS
Dimensions shown in inches and (mm).
8-Pin Plastic DIP (P Suffix)
8 5 0.280 (7.11) 0.240 (6.10) 1 4 0.070 (1.77) 0.045 (1.15)
0.430 (10.92) 0.348 (8.84) 0.210 (5.33) MAX 0.160 (4.06) 0.115 (2.93)
0.325 (8.25) 0.300 (7.62) 0.195 (4.95) 0.115 (2.93)
0.015 (0.381) TYP
0.130 (3.30) MIN 0.100 (2.54) BSC SEATING PLANE 0- 15
0.015 (0.381) 0.008 (0.204)
0.022 (0.558) 0.014 (0.356)
8-Pin Cerdip (Z Suffix)
0.005 (0.13) MIN 0.055 (1.4) MAX
8
5 0.310 (7.87) 0.220 (5.59)
1
4 0.070 (1.78) 0.030 (0.76)
0.405 (10.29) MAX 0.200 (5.08) MAX 0.060 (1.52) 0.015 (0.38) 0.150 (3.81) MIN
0.320 (8.13) 0.290 (7.37)
0.200 (5.08) 0.125 (3.18)
0.015 (0.38) 0.008 (0.20)
0.023 (0.58) 0.014 (0.36)
0-15 0.100 (2.54) BSC SEATING PLANE
8-Lead SOIC (S Suffix)
8
5
PIN 1
1 4
0.1574 (4.00) 0.1497 (3.80) 0.2440 (6.20) 0.2284 (5.80) 0.0500 (1.27) 0.0160 (0.41) 0.1968 (5.00) 0.1890 (4.80) 0.0196 (0.50) x 45 0.0099 (0.25) 0.0688 (1.75) 0.0532 (1.35) 0.0098 (0.25) 0.0075 (0.19) SEATING PLANE
0- 8
0.0098 (0.25) 0.0040 (0.10)
0.0500 (1.27) BSC
0.0192 (0.49) 0.0138 (0.35)
SEE DETAIL ABOVE
-20-
REV. A
PRINTED IN U.S.A.
C1734-xx-11/96


▲Up To Search▲   

 
Price & Availability of DAC8512

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X